<extend name="Public/base"/>
<block name="body">
  
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>{$meta_title}</h2>
	</div>

	    <div  class="with-padding">
                <div class="fl">
                    <a href="{:U('Student/Export/zkexcel',array('grade'=>$alist['grade']))}" class="btn btn-success">导出主科成绩册</a>&nbsp;

                    <button class="btn ajax-post btn-info btn" url="{:U('Student/export_qt')}" >导出其他科目成绩册</button>&nbsp;
                    <a href="{:U('Student/Export/renshuexcel',array('grade'=>$alist['grade']))}" class="btn btn-ajax btn-success btn">导出各班人数</a>&nbsp;
                    <a class="btn btn-warning btn" href="{:U('Student/update_renshu')}" >统计学生人数</a>&nbsp;
                    <a href="{:U('Admin/Student/update_grade')}" class="btn btn-ajax btn-success btn">学年更新</a>&nbsp;<button class="btn ajax-post btn-danger btn" url="/web2016/index.php?s=/admin/keti/setcategorystatus.html&amp;status=-1" target-form="ids">删除</button>&nbsp;

                    </div>
                </div>
        <div  class="with-padding">
                <!-- 查询表单start -->

                    <form method='post' id="form" name="form"  action="{:U('Student/Export/classscorehz')}" class="form-horizontal">
                       <div class="form-group">
                       <div class="col-md-8">
                           <div class="input-group">
                              <span class="input-group-addon">请选择参照学期</span>
                             
                                      <select name="term" id="term" class="form-control" >  
                                      <option value="{$aTerm}">{$aTerm}</option>                                      
                                       <volist name="termlist" id="v">
                                       <option value="{$v.id}">{$v.value}</option>
                                       </volist> 
                                                
                                      </select> 
                              
                              <span class="input-group-addon fix-border fix-padding">&nbsp;当前学期&nbsp;</span>
                               <input type="text" class="form-control" name="cur_term" value="{:C('CUR_TERM_CHJ')}" placeholder="输入学期查询">
                              
                              <span class="input-group-btn">
                                <button class="btn btn-primary" type="submit">&nbsp;导出各科成绩excel&nbsp;</button>
                              </span>
                            </div>
                        </div>
                       </div>
                  </form> 

             
                <!--  查询表单end -->
          </div>
          <div  class="with-padding">
                <!-- 查询表单start -->

                    <form method='post' id="form" name="form"  action="{:U('Student/Export/bjscorehz')}" class="form-horizontal">
                       <div class="form-group">
                       <div class="col-md-8">
                           <div class="input-group">
                              <span class="input-group-addon">请选择参照学期</span>
                             
                                      <select name="term" id="term" class="form-control" >  
                                      <option value="{$aTerm}">{$aTerm}</option>                                      
                                       <volist name="termlist" id="v">
                                       <option value="{$v.id}">{$v.value}</option>
                                       </volist>                                                 
                                      </select> 
                              
                              <span class="input-group-addon fix-border fix-padding">&nbsp;当前学期&nbsp;</span>
                               <input type="text" class="form-control" name="cur_term" value="{:C('CUR_TERM_CHJ')}" placeholder="输入学期查询">
                              
                              <span class="input-group-btn">
                                <button class="btn btn-primary" type="submit">&nbsp;导出班级成绩excel&nbsp;</button>
                              </span>
                            </div>
                        </div>
                       </div>
                  </form> 

             
                <!--  查询表单end -->
          </div>

  <!-- 数据表格 -->
    <div class="with-padding">
        <table id="table-data" class="table table-bordered table-striped table-hover">
            <!-- 表头 -->
            <thead>
            <tr>
                <th class="row-selected row-selected" style="width: 20px">
                    <input class="check-all" type="checkbox"/>
                </th>
                <th>序号</th><th>班级代码</th><th>班级简称</th><th>班级</th><th>班主任</th><th>总人数（男/女）</th><th>更新日期</th><th>操作</th>
                </tr>
            </thead>

            <!-- 列表 -->
            <tbody>
            <volist name="_list" id="v">
                <tr>
                    <td><input class="ids" type="checkbox" value="{$v.id}" name="ids[]"></td>
                    <td style="width:auto;max-width: 150px;" class="text-ellipsis" >{$i}</td>
                    <td style="width:auto;max-width: 150px;" class="text-ellipsis" >{$v.bj_code}</td>
                    <td style="width:auto;max-width: 150px;" class="text-ellipsis" >{$v.bj_name2}</td>
                    <td style="width:auto;max-width: 150px;" class="text-ellipsis" >
                    <a href="{:U('classdetail?id='.$v['id'])}" target="_blank">{$v.bj_name}</a></td>
                    <td style="width:auto;max-width: 150px;" class="text-ellipsis" >{$v.headteacher}</td>
                    <td style="width:auto;max-width: 150px;" class="text-ellipsis" >{$v['woman']+$v['man']}({$v.man}/{$v.woman})</a></td>
                    <td style="width:auto;max-width: 150px;" class="text-ellipsis" >{$v.update_time|date='Y-m-d',###}</td>
                    <td style="width:auto;max-width: 150px;" class="text-ellipsis" ><a href="{:U('editClass?id='.$v['id'])}">编辑</a> 
                    <a href="{:U('classdelete?id='.$v['id'])}">删除</a>
                   <!--  <a href="/web2016/index.php?s=/admin/student/setclassstatus.html&status=0&ids={$v.id}" class="ajax-get">启用</a> -->
                    </td>
                 </tr>
            </volist>
            </tbody>
        </table>
    </div>






  
</block>